Finished Binary Generator and added new function