Cleaned up SExpression parsing code.