fixed a bug
fixed #588
more changes to docs stuff.