Fixed many compile errors and added selection to Parser