Bug correction

Corrected some bugs in User class, related to email management. Added a
sendmail function (usage to be done) and small bug fixes in install and
settings.