Refactored and revised module system and nuget packaging