Template bugfix and cleanup

Pulled "getFilledTemplate" out of __toString(), ensure that __toString()
never throws an exception.
Added some docstrings.
Update README