Small layout adjustments
Formatting
Fix association
Allow startpos and endpos to be initially empty