adding problem-5 and cleanup on jsdocs