added comments
added comments and convert c-style comments