Added a prepend option

Added prepend option. Append takes priority over prepend