[fix] Correctly determin percentage before resetting the free space.
[minor] Added missing reset method.
[minor] Started on the file API
[minor] Started with the File factory