Added some debugging output, moved around some functionality in the instructions file