Fixed some filesystem bugs.
Addeed better handling for windows path.
Added basic filesystem documentation.