replace electric pair mode with autopair; minor updates;