Restructured directories
Added swap files to gitignore
Renamed test
Added test for successful operation
Started refactoring of get_modules()