Checkout function added
All tests pass, README appended