Minor bug fixes and documentation updates
Signed-off-by: Izhar ul Hassan <ezhaar@gmail.com>