Shell function fixes, added snippet recorder