Finishing

Updating the preview code with comments and a file to test the program