Completed binary conversion and flag conversions, tests all pass