Added function to count the number of chapters.
Minor modifications and optimisations
Updated main function.Added feature that previously downloaded manga will not be redownloaded.