some refactoring and added exception handling to use meta on Android
added meta interface class plus tests