Added export to file feature

Added abstract class Model

Signed-off-by: Ricardo Leitão <ricardo7rl@gmail.com>