Project restructure

Moved each class to its own file.