Fixed a couple bugs, added code for actually dispensing, removed some debugging output