added some features and made some improvements

features:
* overflow and underflow protection
* automatically expandable cell array

improvements:
* initFile function added
* fatal function added