fix minor bug in new
add useful things to bash script template