added main script
now non-debug version with actual commiting, init text data file