Moved core to private variable
Added getter for core
Added some extra comments in modules
Added specific errors when api is not set or core key can't be found