Adding more parameters to open() and close()
Adding application dir. Board is already being detected.