Implemented flag system, bug fixes, variable name collision, and added todo's (0.5)