Minor code clean-up, added GPLv3 license.