adding _pad method, corrected _updateClasses method and other misc updates