Added prefrences menu, fixed logger autoscrolling