Added several checks and clean up the source

Added tphere and tpallhere

Fixed syntax in give command