added unassign and corrected documentation and code #268