Add main.m redirect files within folders
Add path-finding folder
Limit G to be Gmax maximum