Development version 1.38-2: New code related to edge corrections and various bugfixes etc.