Added required libraries and updated core data