Updated all file documentation, removed unnecessary imports, arranged variables.