redefine n_b before print, moved deallocate
removed call to dist table module
fixed typo in module call