converting indentation to tabs
rename WSP_SCALE_FACTOR to ATP_SCALE_FACTOR
minor re-organization of top level constants