Made some debug improvements
Added debugging scripts