added "state" and "bodynewlines" parameters
Merge pull request #3 from baffonero/master

added "state" and "bodynewlines" parameters