expanded Actions api

added in features for querying actions
various other changes for readability and error
message improvements