Added some functions, Snippets and made some erlang adjustments
added fn snippet