Added docs of public functions