TODO added, README updated
Functional tests added. Negative cases.