Removed states in mapping.
Fixed error in bits xoring statement in output network