Updated class code to make the distinction between class definitions and __main__ namespace code
Minor change to iteration counter
Beware of pandas Series object casting to integers
Added arguments in Series constructors to ensure solution variables are floats