Minor - white spaces fixes, adding function docs.