Added main files and some code