A lot of things, correct the arrayfile error, corrected the formula for conversion etc. Need to add comments.