implemented vote-triggered commands (closes #2), various minor changes