tweaking the example to make it more usable;
fixed the ignore
copied the license out of the source code;
to be clear, this is NOT a license change
fleshing out the comments
converted the method to be private as noted
adjusting the code to match the PSRs
added a public method to keep backwards compatibility