STAmount refactoring down payment

@tdfischer, @nbougalis 
No change in functionality. Moved a bulk of members to outside the class and regrouped everything to be orderly.