Help manual

Added the getopt function and help manual.