JSDoc added, readme updated