Ability to specify main entry point.

If main entry point is specified, un-used files will be discarded.