some fixes, update version number to 0.5