changes debugging to true in production settings. adds variable for site url for api. adds to detail map function