changes and cases introduced for general solver. COrrections to python main routine to accomodate old example and typos