Automatically formatted all code, added JavaDocs