Split main program into smaller files