fixes

cleaning up some code, removing a print and testing and improving ini
reader