Added some functions and documentation to reduce warnings when compiling
Merge pull request #82 from zsbzsb/update/warning_fixes

Added some functions and documentation to reduce warnings when compiling