Refactoring some varible names.
Adding argument to allow scaling of data when read from file.