Lopped off useless API functions
Space for arrays
Circular buffer implemented