Moved main to its own file. Added multi-file support and multi-run fitness.