added inputfiles; fixed solve