moved code into package
changed 'nested' commands to '.' separation