Split main file into multiple smaller files