Sorted the list of entry points and fixed the bug in reporting the list size.

This commit belongs to issue #71.