Fixes some bugs, adds section solver