Fixed MLS input and removed debugging cout