added line numbers to logs and handled ordernumber when deleting/creating an object