Updates, improvements, cleanup

Hi David!

this pull request contains changes by others (@w-m and @rpeterson) and myself. Please review and tell me what you think!

Cheers,
Jan