added some scala snippets and added copy line func