Release v1.4.0 and fix several massive bugs.