Adds logging feature.
Version bump to 1.3.1