Added PSMSL functions, changed license to GPL-3