Version 0.02

Fixed a few bugs, (Mainly to do with logging in variables/booleans) also
refactored code.