Bug fixes and refinement

Icons added to FileDialog, better sorting functions, increased read
buffer.