Clean up base action class and add doc comments.