implemented getFields()
Merge upstream/master
Merge pull request #9 from Lawbought/master

Bsta title