v 1.5.5 fixed issue #21, abstracted type attribute function, cleaned up README