Fixed pattern reading and some small issues.
Big issue remains: EJML sets precision 3 to doubles.