Added single assembly build. Fixed minor issues.
Erisas semantic distance and adjacent merging. Minor fixes.