Implemented data functions for different input types, minor bug fix
Added demo page