initial commit of galley code