Fixed a issue with the tmp directory
Updated readme
Prepared version 3.1.2