Many improvements and fixes; bump version to 0.1.4