Minor fixes, added greet function