Added optarg and added a -h flag

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Added a -P flag which will simply print the nbt tree

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>