Added Add and patch commands with more testing. Exception handling is a bit messy at this time, especially in unit tests...