Renaming main to encounter builder
Reorganizing