fixed readme, removed unused code in main