Improved debug output
Added const where needed
Merge branch 'minor_changes' into all_dev_combined
Changed fixed foot to right