Fixed price api bug, refactored A LOT. Fixed 1 bug, introduced 2 new ones.