Added package and function documentation