made changes to train on individual files and added linear backoff smooting calculation