refactoring

refact one single file into multiple files and generate main script
with a ruby script