Fixed style and added documentation in header file
Used indent -kr -i8 to fix indentation