declare -x messages appear in my terminal. How can I get rid of it?
There are many different Bash script files that get executed before and after your .bash_profile file is executed. This Bash Reference Manual page explains all the various Bash script files that get executed upon starting up a Bash shell. 

p.s. Keep in mind that any one of those files could include commands to load/execute yet another file.