- Fixed memory leak
- Added initial code for getopt function