added option for enabling hard lock (disabled by default), made alert localizable, some maintenance