Added main code and accessory files to repo