Style fixes

- Removed dead code
- Exceptions are now subclassing RuntimeError
Added message string to Exceptions
Removed debug leftover
Changed to list comprehension
Fixed style issue
Updated and added docstrings
Fixed line width issue