lots of cleaning up. more improving by slicing instead of indexing. re order functions in a logical matter. commented every process. added warning message.