Added documentation and changed license terms.