replaced Bool typedef with native bool type
stripped function prototypes and self-explanatory typedef statements