Added defmains and tests, plus integration tests for workflow
Added namespace docs