Code revision and version release

Version 0.3.1 it's out!