Changed interface of request and response, fixed bugs

Signed-off-by: Alexander Book <redchrome@gmx.de>