Feature/redeem codes

Finished redeem end-point with tests. Have updated and reformatted documentation.