Optimized imports
Closes #181. Implemented fragment signature and local variable mechanism