Fix errant print statement and refactor bin script