began implementation of ping function

still some kinks to work out, just a quick start to the function. may
have to do some rethinking of how the program is structured as making
some calls is getting messy and changing references using the
contextmenus is starting to get confusing
fixed exception error
Merge pull request #11 from phibangbui/PhiBui

Phi bui