Version 1.0.4.

Many small bugfixes and improvements.