Added typehints to functions and fixed CSS + images path