Changed the way preferences are retrieved, and commiting other files that reflect previous commit. Added some "documentation"