Fixes #15

This fixes and prevents future occurrences of #15:
Prevents 'setMeta on non-object' errors by throwing an exception if an invalid argument is passed to addField()
Updated doc