Initial commit

These are the current code samples I have come up with and some of the
test files. Discounts is not currently finished.