Added main and core files