More logic added

Cleaned up code a little, added (pseudo)code relating to mod listing