Added jsDocs

Resolved #19