Code

- More open fixes, add missing my in front of filehandle variable