added loose framework to process BUY commands
added more to BUY commands
added some basic checks to the input