Added .events command, fixed minor bugs.