Merge pull request #19 from oreillymedia/sarah

Adding a gsub line to remove extraneous newlines from output
adding index datatype handling at level 1