Implemented more sanity checks for feature parsing