fixed request parsing and responding
Merge pull request #2 from gmuecke/HEAD

fixed request parsing and responding
added support for additional fields
added additional responses to certain situations
refactored codde