body-parser definitions added

I've completely rewritten this definition