Added propper documentation.