API change, output now configurable which closes #3, readme updated