Debug mode added

Variables and conditions for debug porposes added