(feature) adding documentation to functions