Added comments to all public functions of library so far