some refactoring and some work on the doc interface for actions...

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