Updated docstring format and fixed typos