added latch option for buttons, and updated docs