added support for passed variables, added usage