added support for calling actions, and made output nicer