command line interface added.

add, check and clear functions not done yet...