Refactoring compile commands
reduce nested callbacks, break down functions
Merge pull request #3 from infosia/refactor_compile_command

Refactoring compile command