Fixed bug causing file open to not work.
Implemented parsing of fields in URL.