add main function
add parser for white space