Added Apache licence to all files. Closes #82.