Some methods moved to file fabric and file object. Also  I fixed some bugs after debugging.