Association documentation and minor bugfixes.