Updates to docs, and more error checks for input