refactored and cleaned  controller and js code
added readme file
added readme text