Refactored code. IO module, Synthesis module added.