Refractored code.
Initial commit of a basic logging system.
Initial commit, subject to change.