Updated to version 0.4.1

Fixed many bugs and improved a few things