File pinning and accessibility

Option to turn on file pinning, and code to implement file pinning, also some changes for accessibility.