--Almost all c functionality implemented and tested