added line generation. delimiter constant. moved check for escape. created common.sh. fixed some bugs