Fixed #10. Added Apache v2 license.