Version bump to 0.5.1
fix bugs