Fixed some bugs

Corrected buying procedure, added some minor features