correcting licence to apache v2

replacing gpl licence by apache v2
removing old licence file headers
auto indentation by sublime plugin