Added a copyright and cleaned up the code.

The project is now licensed under the Apache License 2.0 to the ohmage team.