Added balance + request parsing functions, note not tested because cabal wouldn't play along with me, but the types check out so its probably safe