Merge pull request #97 from claudius108/master

Improvements, removing deprecated functions, correcting permission-related functions, etc.