Modified getMacroInfo() and added several new functions