Created a preview generator

Still needs some work...