fixed bug for component division
implemented solution finding and tests. seems to be working
implemented solving an input file through console interface