remove useless comments, whitespace fixes
minor reorganization
simulator: tests
reset last search time even if no alarms are found
protect databases in wxdevelopment