prj generation complete. Separating mainfile and function files