Replaced duplicate-line with a better version. Changed some buffer management commands, and messed with the mode-line to compact it a bit.