Split out to parse function
Merge pull request #1 from gouf/refactor/main_script

Refactor Split Code