Add some docs and bugfix.