Added deserialization, template and route bolts, unit tests