Wrote basic documentation for functions so far.