update version to 0.3.4, fix a few bugs

Change-Id: I77ee32263f075d96e14e74a40da0c520ea808648