Add rotate functions to molecule object