Clean up markdown source related stuff.
Added license + minor source refactor.