Main: add the first few steps of the catalog creation

Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>