changing name of misleading variable; moving all default value to prototype; commenting;