shebang changed to #!/bin/dash, text color incorporated. Minor changes related to apt-get, exit status added for fninstall, fnsearchpack, fnaptget