Changed default value of DetailActivity: extract name from URL if name is empty.
Added headers.
Reformatted codes.
Fixed some comments.