Added init method and setup the core data
Added #pragma marks