Added code for downloading, loading and preprocessing data