Fixes #66 and #62

Had to redo some of the logic for creating and setting attributes, but
this is probably for the best.

Also updated to README for setting boolean values.