Update pdftableconversion suite

Cleaned up to better fit google R style guide and replaced the  first function with a better option.