Splits main file into various modules