Added &debug=True functionality. Fixed some bugs.