fix fload converison of filesize
added some debug to the file data dedection
fixed filesize / filelenght bug introducend by moving functions to library
global vars are bitches!!