import from pfsmorigo-scripts
refactoring and organization
all functions imported. it's working!
License update