fixed #3

Also flexible filesize is implemented
typo