more documentation
cleaned up code for converting first h1 header into a filename