more minor changes made, completed the load function but getting error
while loading file.