Added directory browser. Code improvements.