code updated and reorganized
updated: old numerals in math support