Changes since previous version: + move from GPLv3 to modified-bsd license, with huge thanks to Jamie Beverly