Splitted code into several files.
Modified gitignore