version 140821D Works perfectly with Erik's corrections...minor clean up