Replaced magic numbers for flag bits with constants
Added basic parsing of Questions