Add documentations, constantize, update libraries