reworked + added method to checking module type
deleted not used lines
added module to run config