Remove binding direcotry
Apply patcheds from Philipp Geyer <philipp@geyer.co.uk> - support custom file I/O functions
Minor fixes