fixed divide by 0 in scaling. Removed some dev tags.