Added file i/o and standalone executable