Now a fully fledged module: removed test code and updated docs and tests