Add in detail.pl

Updated cgi script - need to add in module calls and data formatting.