Moved main to a separate file

Exploring how separate compilation works in Java, it seems a little
friendlier than C