Added some comments/JSDocs