Restructurization.
Added menu.
Added "new" and "solve" function.