adding configs
restructured payment function, fixed bugs of losing errors/successes
added google analytics code
minor changes