Rename function
Document functions.
Remove io:format