Finished refactoring initproject.py