Devel 1.6 bugfixes

Hi, we are working on improving OpenAttestation and we found some bugs. In this pull request there are the commits which fix the problems we found.

Regards,
Nicola Barresi
Roberto Sassu