Replaced this -> self, fixed documentation