Basic Code Structure

Updated the basic code structure to be modular, still need to integrate
with algorithm though.