Refactor location, filename, and klabel attributes

**please review**
Because nothing threw it.