merging code improvements contributed by Cantab Research Ltd with version 0.3g
updating changelog