Add preset snippets and fix package path detection

@ Fix path detection
+ Preset snippets