#30 fixed toggle boolean setup and tested + clean

There's a comment where it was crashing due to null pointer exception
(line 340), its probably due to the fake DB being initialized before the
buttons so they can't detect them properly. All the old code is still
commented out if there is a problem detected later.