added print debugs of several variables

Just to help in debugging, not intended for the final version.