Fixed issues with python modules on Mavericks and added some documentation in headers