fixed bugs, improved nnetworks and gui