FreeBSD support and cleaned up params and template