Improved file open dialogue

Added some extra parameters to open file dialogue and added a check to
findConstructor so it doesn't throw errors.