fixed a couple of bugs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
house keeping and cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>