release 1.0.4. Fixed several warnings