Adding JSDoc comments for future maintanance