Added documentation

For future reference, when writing comments for function headers, use
/** instead of /*.