Loading Policies

Added f# loading policies for simpler code. Also made changes so that
foldernodes only contain valid files