code modified with some features - chrome app manifest added