PEP8 Refactor

Library has been refactored to more closely match PEP8 standard.
Logging module has replaced all print statements because print is ugly in libraries.