cleaned code, added inv toggle, book - menu fix

cleaned code, added inv toggle, book - menu fix