Rewrite action nodes

Now there is better parameter checking, and it is easier to add new action nodes