archives support

1.Returned File I/O to kplib.c
2.Created file i/o plugin, based on kplib.c (not tested)
3.Bugfixes