Added main functions and compare_and_swap; updated README