some bug fixes and add manuals

Signed-off-by: AK2083 <ankh.egypt.public@googlemail.com>