continuing changes and fixing previous problems
made some changes to the way new records are processed
added an inventroy directory