add some comments
add argument for output file.
add function for deleting plugin_data.
finish code for handling pass 1