Documented a few functions.