Update main.c

//err comments are just for temporary usage and may be removed