Changed the AV rating curve code

streamline it to make better use of DataFrame and less of lists