improved get_components function
restructured libraries
changed file structure