Cleanup of files, fixed style issues, added api app tp style tests.