Set version to 0.1.0
Rename valid? to valid_code?
Fix code validation method