Generate stub README.mkd and doc directory
Fixed a few bugs