Added documentation for basic functions

Signed-off-by: Preetham MS <me@preetham.in>