Updated function header comments and removed tabs