Cleaned debugged version of BaseJKA SDK