added (i)nsert and (d)elete commands
fixed line numbers in error messages
lines can have spaces at the beginning