Added more checks for invalid input
version bump to 0.3.4