Add debug and global fields
Update copyright period
Pull out common var.
Bump version.