mended ui + some core mathematical functionality