rewrote calling functions from cmd

functions now stored in /usr/bin