Version: Changed version to 0.3.1

Fixed bugs:
- Fixed bug in installation script when updating source code.
- Fixed bug in timing and logging.