modularize the main script file; remove the test code
remove unused images
update config file and port for deploy