initial commit from sword-tools repository