Cleaned Up. Added Doc Strings. Fixed PEP errors