fix free bug
improve output formating
update table