Added file mode manipulation, fixed types bugs,
added stat responce.