added main and included relevant files