Review actions. Moved tests and improved docstring.