Implemented binary instructions, removed some unnecessary variables