add main class, user can start mem or backtrack from the main class.
add usage