Fix comment
Remove not used function
Document functions