Added framelist to main

Frames are now stored in the list instead of being echoed.