Added shell function and a few functions for teh user.