updated some files... added jsdocs