Changes made to the library to ensure it meets PSR standards (covered 0 and 1 at the moment, need to finished PSR-2 tomorrow!)