update dependencies
add rudimentary maths mode support