Smal fixes in main and cc1000.c module