implements all functions
add preview
pack template.conf into JAR resource
create JAR manifest
fix bug