Add version number
remove unused margin argument
add panel based API