Added "Remove Empty Lines" command and refactored