added build_pdb function to utils
modified build_pdb
added filename option