Removes idea modules + fixes code