Removed debugging script and made corrections according to code review.