Fully implement purchase function
Describe use in readme