Added package string to commands for better compatibility with other extensions.
Abstracted away some complexity into a helpers module.
Added support for the function form of use strict; complexity improvements.