remove extra newlines
update md and rst docs
make script to create docs