Cleaning up scripts/tests files, fixed bug in show_weights