Apply Apache License 2.0 closes #1