Added Delphi source project, some minor changes to code.