Implement basic actions

Should be finished by tomorrow. Putting here so that I can see the documentation errors.
this makes your code exception-safe.