* tweaking some more rules. * fixing linting.
* tweaking rules * fixing issues
This commit also improves some type handling in the project.