Working final code with comments and deleted lisence