Many type and code errors fixed

GET, POST, PUT and DELETE working