Updated documentation

Updated code documentation for being able to automatically generate a proper documentation using JSDuck.
(A custom "licence" tag parser should be provided upon generation.)