Made accept function more consice
Reoganized repo