updated licence to apache v2.0
flushed out most of the core functionality in half the code