Removed excessive bold font weight
Added warning comment
Implemented updateDoc and getPrefs method.
Separated docPath and docName.
Replaced spaces with tabs.
Implemented the global preferences.