Fixed typos, removed empty elsif branches.
Merge remote-tracking branch 'upstream/master'