Edited comments and export

Just edited some comments and started to implement the export function