Bugs fixed

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>
Added some debugging output

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>