This code is free software. You may redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either Version 3 of that License or, at your option, any later version. If you use this software as part of your work, you are expected to provide academic attribution to the original authors.
This code is distributed with the hope that it will be useful, but without any warranty of any kind. See the GNU General Public License for details. A copy of that license can be obtained from the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA, or at http://www.gnu.org/licenses/gpl.html .