Fixed bug in menu, added init class and CLI class