Modularized addstar function. Stars work on AE

New function uses parameters and a for loop to append # of stars to an
element based on priority.