Added code comments (phpDoc and jsDoc)