Added some changes and fixed bug with bodyParser()