modularised the code. still working as before. added logic to disconnect clients.
removed comment.
added the photos that are to be sent to the client.