Add attaach box func.
resolved conflicts
Merge branch 'john-rss' of github.com:hbradlow/trajopt into john-rss