Major improvements

Added callback functions,
Modified some functions to make private
CSS and element changes to improve html