fixed a bug and fiddled with docs