Fixed docstring and added comments in the online module