added curl download script
added block appender
added a few generic functions