added new constants TYPE_ONLINE and TYPE_OFFLINE also new method returnFileType() which is a helper method to determine whether its an online file or offline file
For methods which take in an ID (type Long) as a parameter, a check is now performed to see if they are null or not. if they are null then an exception is thrown