Few fixes and several new functions for filesys module