Added documentation and made a few touchups that make the API a bit cleaner