Removed unused stdlib.h include
added macros for easier usage