Code cleanup to be more conforming to style guide.

- Return `Unit` instead of using procedure syntax.
- Explicitly listed return type for `def`s.
- Added/removed `()` for arity-0 methods depending on whether or not they have side-effects.
- Removed unused imports.
- Fixed missing "`" in doc strings.
- Removed redundant `final` qualifier.
- Renamed values to prevent shadowing.
This change is not source compatible, existing callers that look like `isWhole()` will fail:

```
scala> def isWhole = false
isWhole: Boolean

scala> isWhole()
<console>:9: error: Boolean does not take parameters
              isWhole()
                     ^
```