Added Location() function for bucket

Also removed old debug code.