serving files from pwd, and added main function