more refactoring...

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

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