Added comments almost finished psql errorhandling, typos, typos